package rs.fon.is.music.domain;

import rs.fon.is.music.util.Constants;
import thewebsemantic.Namespace;
import thewebsemantic.RdfProperty;
import thewebsemantic.RdfType;

@Namespace(Constants.SCHEMA)
@RdfType("PostalAddress")
public class PostalAddress extends Thing{
	
	@RdfProperty(Constants.SCHEMA + "addressLocality")
	private String addressLocality;
	
	@RdfProperty(Constants.SCHEMA + "addressRegion")
	private String addressRegion;
	
	@RdfProperty(Constants.SCHEMA + "addressCountry")
	private Country addressCountry;
	
	//dodala
	@RdfProperty(Constants.SCHEMA + "streetAddress")
	private String streetAddress;
	
	//dodala
	@RdfProperty(Constants.SCHEMA + "postalCode")
	private String postalCode;

	public String getAddressLocality() {
		return addressLocality;
	}

	public void setAddressLocality(String addressLocality) {
		this.addressLocality = addressLocality;
	}

	public String getAddressRegion() {
		return addressRegion;
	}

	public void setAddressRegion(String addressRegion) {
		this.addressRegion = addressRegion;
	}

	public Country getAddressCountry() {
		return addressCountry;
	}

	public void setAddressCountry(Country addressCountry) {
		this.addressCountry = addressCountry;
	}

	public String getStreetAddress() {
		return streetAddress;
	}

	public void setStreetAddress(String streetAddress) {
		this.streetAddress = streetAddress;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	
	@Override
	public String toString() {
		
		String s = "Postal address: "
				+ "\nURI: " + getUri() 
				+ "\nstreetAddress: " + getStreetAddress()
				+ "\naddressLocality: " + getAddressLocality() 
				+ "\naddressRegion: " + getAddressRegion()
				+ "\npostalCode: " + getPostalCode()
				+ "\n" + getAddressCountry();
		
		return s;
	}

}
